import request from "@/utils/request_order";
export default {
  createOrder(courseId, token) {
    return request({
      url: `/order/t-order/getOrderInfo/${courseId}/${token}`,
      method: "get",
    });
  },
  getOrderInfoByNo(orderNo) {
    return request({
      url: `/order/t-order/getOrderInfoByNo/${orderNo}`,
      method: "get",
    });
  },
  //3、生成微信支付二维码
  createNative(orderNo) {
    return request({
      url: `/order/t-pay-log/createNative/${orderNo} `,
      method: "get",
    });
  },
  //4、根据id获取订单支付状态
  queryPayStatus(orderNo) {
    return request({
      url: `/order/t-pay-log/queryPayStatus/${orderNo}`,
      method: "get",
    });
  },
  // 判断用户课程是否支付
  checkPayCourse(courseId, memberId) {
    return request({
      url: `/order/t-pay-log/checkPayCourse/${courseId}/${memberId}`,
      method: "get",
    });
  },
};
